package org.apache.servicecomb.samples.practise.houserush.login.api;

import org.apache.servicecomb.samples.practise.houserush.login.aggregate.User;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: Snake Man
 * @system:
 * @DateTime: 2022/1/2 1:50
 * @Description:
 */
public interface UserApi {

    User createUser(User user);
    //User createUser(User user, HttpServletRequest request);

    User findUser(int id);

    void removeUser(int id);

    boolean updatePassword(int id, User user);

    User signin(User user);

    //检验token
    User verifyToken(String token);
}
